﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SLServiceLibrary
{

    public class IndusryType
    {
        int it = 0;
        public int GetIndustryType(string Industry)
        {
            if (Industry == "FIANCEVALUE")//1
                it = 1;
            else if (Industry == "INDUSTRYVALUE")//2
                it = 2;
            else if (Industry == "BUILDINGVALUE")//3
                it = 3;
            else if (Industry == "TRANSPORTVALUE")//4
                it = 4;
            else if (Industry == "RETAILVALUE")//5
                it = 5;
            else if (Industry == "ESTATEVALUE")//6
                it = 6;
            else if (Industry == "SERVICEVALUE")//7
                it = 7;
            else if (Industry == "TOURISMVALUE")//8
                it = 8;
            ////else if (Industry == "AGRVALUE")//9//数据库中是总数据，无用，坑爹啊！
            //    it = 9;
            else if (Industry == "FARMINGVALUE")//10
                it = 10;
            else if (Industry == "FORESTYVALUE")//11
                it = 11;
            else if (Industry == "HUSBANDRYVALUE")//12
                it = 12;
            else if (Industry == "FISHERYVALUE")//13
                it = 13;
            //else
            //    it=100;
            return it;

        }

        //根据输入的参数IndustryName，来确定所要查询的表
        // AGRICULTURAL、COUNTYINDUSTRY、INDUSTRY
        int value = 0;
        public int GetIndustryName(string IndustryName)
        {

            if (IndustryName.Equals("AGRICULTURAL"))
                value = 1;
            else if (IndustryName.Equals("COUNTYINDUSTRY"))
                value = 2;
            else if (IndustryName.Equals("INDUSTRY"))
                value = 3;
            //else
            //    value=100;
            return value;
        }
    }

}